using NodeCanvas.Framework;
using ParadoxNotion.Design;

namespace Yoozoo.Gameplay.Liberty.AI.Node
{
    [Category("Ggame/Liberty")]
    public class SetAnimatorFloat : AIBaseNode
    {
        [RequiredField] 
        public BBParameter<string> floatName;
        public BBParameter<float> floatValue;

        protected override void OnExecute()
        {
            _animator.SetFloat(floatName.value,floatValue.value);
            EndAction(true);
        }
    }
}